package com.dt76.smallloanbackenduser.remote.lhuaw;

import com.dt76.smallloanbackenduser.hystrix.lhuaw.articleHystrix;
import com.dt76.smallloanbackenduser.pojo.lhuaw.AppPushMessage;
import com.dt76.smallloanbackenduser.utils.Page;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="smallloan-backend-service",fallback = articleHystrix.class)
public interface ArticleManagementtest {
    //App推送消息 lhuawHystrix
    @RequestMapping("/lhuaw/qryAllArticle")
    List<AppPushMessage> qryAllArticle();
    @RequestMapping("/lhuaw/qryAllArticleAll")
    public Page qryAllArticleAll(
            @RequestParam("pageIndex") int pageIndex,
            @RequestParam("articleTitle") String articleTitle,
            @RequestParam("classification") String classification
    );
    //删除
    @RequestMapping("/lhuaw/delArticle")
    public Result delArticle(@RequestParam("articleId") int articleId);
//App推送消息
}
